/*
 * @Author: baiyujing xiaolin.you@ideacome.com
 * @Date: 2024-06-21 13:05:09
 * @LastEditors: baiyujing xiaolin.you@ideacome.com
 * @LastEditTime: 2024-06-21 13:06:27
 * @FilePath: \git_test\odd.js
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
 */
//获取数组中的偶数
const evenNumbers =numbers => numbers.filter(number => number % 2 === 0);

console.log(evenNumbers([1, 2, 3, 4, 5, 6])); // 输出 [2, 4, 6]